package com.example.a10928.weifriend.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.a10928.weifriend.R;
import com.example.a10928.weifriend.http.api.base.AllDetatlBean;

import java.util.List;

public class NoticeAllAdapter extends BaseQuickAdapter<AllDetatlBean,BaseViewHolder> {

    public NoticeAllAdapter(int layoutResId, @Nullable List<AllDetatlBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, AllDetatlBean item) {
        helper.setText(R.id.all_notice_tv,item.getNotice_content()).setText(R.id.all_notice_time,item.getCreated_at());
    }
}
